package com.sport.controller;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sport.po.Manager;
import com.sport.service.ManagerService;

@Controller
public class ManagerAction {
	@Autowired
	private ManagerService managerService;
	
	@RequestMapping("UpdateManager.action")
	public String updateManager(Manager manager,HttpSession session){
		Manager manager1=(Manager)session.getAttribute("manager");
		manager.setPassword(manager1.getPassword());
		managerService.updateManager(manager);
		session.setAttribute("manager", manager);
		return "manager/center1.1";
	}
}
